package com.situ.broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

// 演示静态注册的广播 Alt+Enter
public class StaticReceiver extends BroadcastReceiver {
    // logt
    private static final String TAG = "StaticReceiver";


    @Override
    public void onReceive(Context context, Intent intent) {
        Log.d(TAG, "onReceive: ");
        String msg = intent.getStringExtra("msg");
        Log.d(TAG, "onReceive: " + msg);
    }
}
